eFAWATEERcom BANK API icon

eFAWATEERcom BANK API

(0 reviews)

Account Inquiry

URLs :

Description : This service allows the channel to make inquiries on customer accounts and returns all registered bills that are related to the Bills Payment module.

Channels that want to know detailed information about an Account will pass the Account inquiry request to the mule service, mule service will in turn call the eFAWATEERcom endpoint, get the account inquiry response and give that back to the channel. During processing, the request or response will not be stored in any layers within the mule.

Mulesoft Request:

Mandatory Headers: x-channel-id,x-client-trace-id, x-bank-id,client_id, client_secret

Optional Headers: x-sub-channel-id, x-user-id, Authorization, x-debug-flag, x-customer-id

Query Parameters:

Field NameData TypeRequiredLengthsampleDescription
joebppsNoIntegerCMax 101234Represents unique identifier number of a customer
Either joebppsNo or (idType, id, nation) should be there
idTypeEnum, StringC3 fixed lengthNATRepresents a unique identifier type (The official number used to identify a customer) Enum: NAT PAS IQA BIS GOV NGO DPC
idStringCMax 20The identification of the customer based on the chosen value from the IdType field
nationEnum,StringC2JORepresents the nationality of the Customer Enum: JO - Jordanian IQ - Iraq GB - British KW - Kuwait

Request Body: NA

Mulesoft Response:

Success Response: (200)

Response Body: application/json

Field NameTypeLengthOccurrenceDescriptionValidation
statusObjectM
successBooleanMtrue false
codeString10MError Code“0” incase of success or Error Code
reasonCodeString50OError Type or Error categoryAdd this tag only incase of error
arabicMessageString200MEnglish message translated to Arabicتمت العملية بنجاح in case of success or arabic translated error in case of known errors
englishMessageString200MDescription about the processing“The Operation has been Successfully Completed” Or error Description
End of status
responseObjectOExists if success = true
accountInquiryObjectM
resultObjectM
errorCodestring3M
errorDescstring100M
severitystring7MEnum: Error, Info
End result
custIdObjectC
idTypeEnum, String3MRepresents a unique identifier type (The official number used to identify a customer)Enum: NAT PAS IQA BIS GOV NGO DPC
idstring20M
nationEnum, String2MRepresents the nationality of the CustomerEnum: JO - Jordanian IQ - Iraq GB - British KW - Kuwait
namestring20O
phonestring20O
addressstring100O
emailstring100O
End of 'custId'
joebppsNoInteger10M
recCountIntegerM
billingsRecObjectCMandatory : if RecCount > 0
billingRecArrayMrepeatable
billerCodeInteger3M
billingNostring50M
serviceTypestring25M
billingStatusEnum15MEnum : Active Inactive
nickNamestring50O
End of billingRec
End of billingsRec
End of ‘ accountInquiry ‘
End of ‘ response ‘
{
"status": {
"success": true,
"code": "200",
"arabicMessage": "تمت العملية بنجاح",
"englishMessage": "The Operation has been Successfully Completed"
},
"response": {
"accountInquiry": {
"result": {
"errorCode": 0,
"errorDesc": "Success",
"severity": "Info"
},
"custId": {
"idType": "NAT",
"id": "9901001703",
"nation": "JO",
"name": "Ibrahim",
"phone": "+962786665356",
"address": "Amman",
"email": "ihamed@example.com"
},
"joebppsNo": 30,
"recCount": 2,
"billingsRec": {
"billingRec": [
{
"billerCode": 434,
"billingNo": "dhudfhg884",
"serviceType": "Internet",
"billingStatus": "Active",
"nickName": ""
},
{
"billerCode": 435,
"billingNo": "fdf4g884",
"serviceType": "Mobile",
"billingStatus": "Active",
"nickName": ""
}
]
}
}
}
}

Sample Error Response:

Error codes :

500:

content-type: JSON

{
"success": false,
"code": "500",
"reasonCode": "InternalServerError",
"arabicMessage": "خطأ في الخادم الداخلي",
"englishMessage": "InvalidXMLSchema\nError : The 'Nation' element has an invalid value according to its data type.   Location : Line No:17, Line Position:24"
}

Reviews